home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / pgm_util / splat20b / opcode.tb_ / opcode.tb
Encoding:
Text File  |  1996-02-01  |  988 b   |  53 lines

  1. ' Instruction table for ALC. 
  2. ' Format is
  3.  
  4. ' Mnemonic    OpCode    CP_Handler    KP_row_col    ByteCount
  5.  
  6. 'Mnemonic is case-insensitive
  7. 'OPcode in Hex
  8. 'CP_handler is compiler's handler number
  9. 'KP_row_col is keypad coordinates as two hex digits. Starts at 11 .. 00 means no key
  10. '    kEY PAD MAXIMUM EXTENT IS 44
  11. 'ByteCount is 1, 2 or 3
  12.  
  13. ' items are separated by multiple spaces or tabs. NO COMMAS.
  14.  
  15. ' Empty and comment lines ignored.
  16.  
  17. 'File name must be OPCODE.TBL
  18.  
  19. PUSH        01    0    14    1
  20. POP        02    0    24    1
  21. SWAP        03    0    34    1
  22. AND        04    0    41    1
  23. OR        05    0    31    1
  24.  
  25. NOT        06    0    11    1
  26. XOR        07    0    21    1
  27. BRANCH        08    0    00    1
  28. RETURN        09    0    00    1
  29. RETIFZ        0A    0    00    1
  30. RETIFNZ        0B    0    00    1
  31. INCX        0C    0    33    1
  32. DECX        0D    0    43    1
  33.  
  34. INPUT        40    1    12    2
  35. OUTPUT        41    1    22    2
  36. ON        42    1    32    2
  37. OFF        43    1    42    2
  38. STORE        44    1    13    2
  39. RECALL        45    1    23    2
  40.  
  41. START        46    1    00    2
  42. STOP        47    1    00    2
  43. TEST        48    1    00    2
  44. LOADX        4A    1    44    2
  45.  
  46. GOTO        80    2    00    3
  47. GOIFZ        81    2    00    3
  48. GOIFNZ        82    2    00    3
  49. GOSUB        83    2    00    3
  50.  
  51. TARGET        00    3    00    2
  52. SETTIMER    C0    4    00    3
  53.